package com.wk.springboot.controller;

import com.wk.springboot.service.TestService;
import com.wk.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class UserController {

    @Autowired(required = false)
    UserService userService;

    @Autowired
    TestService testService;

    @GetMapping
    public Object test(){
        testService.test();
       return userService.queryInfo();
    }
}
